#define _CRT_SECURE_NO_WARNINGS 1

#include <iostream>

//#include "vector.h"
//
//using namespace etoet;

#include <vector>

using namespace std;

int main()
{
	vector<int> vec;
	vec.push_back(1);
	vec.push_back(2);
	vec.push_back(3);
	vec.push_back(4);
	vec.push_back(5);

	//for (auto n : vec)
	//{
	//	std::cout << n << " ";
	//}
	//std::cout << std::endl;

	auto it = vec.begin() + 4;
	it = vec.erase(it);
	//it = vec.insert(it, 9);
	it--;
	//cout << *it << endl;

	for (auto n : vec)
	{
		std::cout << n << " ";
	}
	std::cout << std::endl;

	return 0;
}